import React from 'react'
import { Switch, Route, HashRouter } from 'react-router-dom'
import './App.scss';
import Login from './views/login/index';
import Index from './views/index/Index';
import './styles/main.scss'

//路由处理
import PrivateRouter from './components/privateRouter/index';

class App extends React.Component {
  constructor(props) {
    super(props);
    this.state = {};
  }
  render() { 
    return (
      <HashRouter>
        <Switch>
          <Route component={Login} exact  path='/'></Route>
          <PrivateRouter component={Index}  path='/home'></PrivateRouter>
        </Switch> 
      </HashRouter>
    )
  }
}

export default App;
